export type ArticleItem = {
    avatarUrl: string,
    commentsCount: number,
    content: string,
    createTime: string,
    id: number,
    images: ArticleImage[] | null,
    like:boolean,
    likeTime: string | null,
    likesCount: number,
    nickname: string,
    title: string,
    userId: number,
    viewsCount: number,
    visitTime: string | null,
    category: number
}
export type DetailArticle = ArticleItem & {
    like: boolean,
    followed: boolean,
    favorite: boolean
}
export type ArticleImage = {
    category: number,
    cateoryId: number,
    id: number,
    imageUrl: string,
    orderId:number
}

export type Category = {
    id: number,
    title:string
}

export type Comment = {
    id: number,
    userId: number,
    category: number,
    categoryId: number,
    commentContent: string,
    commentTime: string,
    parentCommentId: number,
    status: number,
    nickname: string,
    avatarUrl: string,
    replies: Comment[];
}